﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            //2、猫、狗、鸭、猴，（吃、游泳、爬树）
            Cat cat = new Cat("猫");
            cat.eat();
            cat.climb();
            Console.WriteLine();
            Monkey mon = new Monkey("猴");
            mon.eat();
            mon.climb();
            Console.WriteLine();
            Duck du = new Duck("鸭子");
            du.eat();
            du.swim();
            Console.WriteLine();
            Dog dog = new Dog("狗");
            dog.eat();
            dog.swim();
        }
    }
}
